home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / ASDebugging.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  5.9 KB  |  151 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ASDebugging.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __ASDEBUGGING__
  18. #define __ASDEBUGGING__
  19.  
  20.  
  21. #ifndef __APPLEEVENTS__
  22. #include <AppleEvents.h>
  23. #endif
  24. /*    #include <Errors.h>                                            */
  25. /*        #include <ConditionalMacros.h>                            */
  26. /*    #include <Types.h>                                            */
  27. /*    #include <Memory.h>                                            */
  28. /*        #include <MixedMode.h>                                    */
  29. /*    #include <OSUtils.h>                                        */
  30. /*    #include <Events.h>                                            */
  31. /*        #include <Quickdraw.h>                                    */
  32. /*            #include <QuickdrawText.h>                            */
  33. /*    #include <EPPC.h>                                            */
  34. /*        #include <PPCToolbox.h>                                    */
  35. /*            #include <AppleTalk.h>                                */
  36. /*        #include <Processes.h>                                    */
  37. /*            #include <Files.h>                                    */
  38. /*    #include <Notification.h>                                    */
  39.  
  40. #ifndef __APPLESCRIPT__
  41. #include <AppleScript.h>
  42. #endif
  43. /*    #include <OSA.h>                                            */
  44. /*        #include <AEObjects.h>                                    */
  45. /*        #include <Components.h>                                    */
  46. /*    #include <TextEdit.h>                                        */
  47.  
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51.  
  52. #if GENERATINGPOWERPC
  53. #pragma options align=mac68k
  54. #endif
  55.  
  56. #ifdef __CFM68K__
  57. #pragma lib_export on
  58. #endif
  59.  
  60.  
  61. enum {
  62. /*     This mode flag can be passed to OSASetProperty or OSASetHandler
  63.         and will prevent properties or handlers from being defined in a context
  64.         that doesn't already have bindings for them. An error is returned if
  65.         a current binding doesn't already exist. */
  66.     kOSAModeDontDefine            = 0x0001
  67. };
  68.  
  69. /**************************************************************************
  70.     Component Selectors
  71. **************************************************************************/
  72. enum {
  73.     kASSelectSetPropertyObsolete = 0x1101,
  74.     kASSelectGetPropertyObsolete = 0x1101,
  75.     kASSelectSetHandlerObsolete    = 0x1103,
  76.     kASSelectGetHandlerObsolete    = 0x1104,
  77.     kASSelectGetAppTerminologyObsolete = 0x1105,
  78.     kASSelectSetProperty        = 0x1106,
  79.     kASSelectGetProperty        = 0x1107,
  80.     kASSelectSetHandler            = 0x1108,
  81.     kASSelectGetHandler            = 0x1109,
  82.     kASSelectGetAppTerminology    = 0x110A,
  83.     kASSelectGetSysTerminology    = 0x110B,
  84.     kASSelectGetPropertyNames    = 0x110C,
  85.     kASSelectGetHandlerNames    = 0x110D
  86. };
  87.  
  88. /**************************************************************************
  89.     Context Accessors
  90. **************************************************************************/
  91. extern pascal OSAError OSASetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
  92.  FIVEWORDINLINE(0x2F3C, 16, 0x1106, 0x7000, 0xA82A);
  93. extern pascal OSAError OSAGetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
  94.  FIVEWORDINLINE(0x2F3C, 16, 0x1107, 0x7000, 0xA82A);
  95. extern pascal OSAError OSAGetPropertyNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingPropertyNames)
  96.  FIVEWORDINLINE(0x2F3C, 12, 0x110C, 0x7000, 0xA82A);
  97. extern pascal OSAError OSASetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
  98.  FIVEWORDINLINE(0x2F3C, 16, 0x1108, 0x7000, 0xA82A);
  99. extern pascal OSAError OSAGetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
  100.  FIVEWORDINLINE(0x2F3C, 16, 0x1109, 0x7000, 0xA82A);
  101. extern pascal OSAError OSAGetHandlerNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingHandlerNames)
  102.  FIVEWORDINLINE(0x2F3C, 12, 0x110D, 0x7000, 0xA82A);
  103. extern pascal OSAError OSAGetAppTerminology(ComponentInstance scriptingComponent, long modeFlags, FSSpec *fileSpec, short terminologyID, Boolean *didLaunch, AEDesc *terminologyList)
  104.  FIVEWORDINLINE(0x2F3C, 18, 0x110A, 0x7000, 0xA82A);
  105. /* Errors:
  106.        errOSASystemError        operation failed
  107.     */
  108. extern pascal OSAError OSAGetSysTerminology(ComponentInstance scriptingComponent, long modeFlags, short terminologyID, AEDesc *terminologyList)
  109.  FIVEWORDINLINE(0x2F3C, 10, 0x110B, 0x7000, 0xA82A);
  110. /* Errors:
  111.        errOSASystemError        operation failed
  112.     */
  113. /* Notes on terminology ID
  114.  
  115.     A terminology ID is derived from script code and language code
  116.     as follows;
  117.  
  118.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  119. */
  120. /**************************************************************************
  121.     Obsolete versions provided for backward compatibility:
  122. */
  123. extern pascal OSAError ASSetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
  124.  FIVEWORDINLINE(0x2F3C, 12, 0x1101, 0x7000, 0xA82A);
  125. extern pascal OSAError ASGetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
  126.  FIVEWORDINLINE(0x2F3C, 12, 0x1101, 0x7000, 0xA82A);
  127. extern pascal OSAError ASSetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
  128.  FIVEWORDINLINE(0x2F3C, 12, 0x1103, 0x7000, 0xA82A);
  129. extern pascal OSAError ASGetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
  130.  FIVEWORDINLINE(0x2F3C, 12, 0x1104, 0x7000, 0xA82A);
  131. extern pascal OSAError ASGetAppTerminology(ComponentInstance scriptingComponent, FSSpec *fileSpec, short terminologID, Boolean *didLaunch, AEDesc *terminologyList)
  132.  FIVEWORDINLINE(0x2F3C, 14, 0x1105, 0x7000, 0xA82A);
  133. /* Errors:
  134.         errOSASystemError        operation failed
  135.     */
  136. /**************************************************************************/
  137.  
  138. #ifdef __CFM68K__
  139. #pragma lib_export off
  140. #endif
  141.  
  142. #if GENERATINGPOWERPC
  143. #pragma options align=reset
  144. #endif
  145.  
  146. #ifdef __cplusplus
  147. }
  148. #endif
  149.  
  150. #endif /* __ASDEBUGGING__ */
  151.